home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Blogowanie poza sfera
/
Qumana 3.0.1
/
Qumana-3.0.1-en-qumana.exe
/
Qumana.exe
/
com
/
qumana
/
data
/
Blog.hbm.xml
< prev
next >
Wrap
Extensible Markup Language
|
2006-11-27
|
2KB
|
107 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="com.qumana.data">
<class
name="Blog"
table="BLOGS">
<id
name="id"
column="BLOG_ID"
type="long">
<generator class="native"/>
</id>
<property
name="blogId"
column="ID"
type="string"/>
<property
name="name"
column="NAME"
type="string"/>
<property
name="url"
column="URL"
type="string"/>
<property
name="apiUrl"
column="APIURL"
type="string"/>
<property
name="platform"
column="PLATFORM"
type="integer"/>
<property
name="username"
column="USERNAME"
type="string"/>
<property
name="password"
column="PASSWORD"
type="string"/>
<property
name="timeZone"
column="TIMEZONE"
type="string"/>
<component
name="userInfo"
class="UserInfo">
<property
name="email"
type="string"
column="USER_EMAIL"/>
<property
name="firstName"
type="string"
column="USER_FIRSTNAME"/>
<property
name="id"
type="string"
column="USER_ID"/>
<property
name="lastName"
type="string"
column="USER_LASTNAME"/>
<property
name="nickname"
type="string"
column="USER_NICKNAME"/>
<property
name="url"
type="string"
column="USER_URL"/>
</component>
<!--
We'll save posts manually, but let Hibernate remove them when
we delete the blog.
-->
<set
name="posts"
inverse="true"
cascade="delete">
<key column="BLOG_ID"/>
<one-to-many class="BlogPost"/>
</set>
<set
name="categories"
inverse="true"
lazy="false"
cascade="all-delete-orphan">
<key column="BLOG_ID"/>
<one-to-many class="Category"/>
</set>
</class>
</hibernate-mapping>